home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-08-02 | 3.5 KB | 102 lines |
- /* Imakefile for pgm tools
- *
- * Copyright (C) 1991 Rainer Klute
- *
- * Permission to use, copy, modify, distribute, and sell this software and
- * its documentation for any purpose is hereby granted without fee, provided
- * that the above copyright notice appear in all copies and that both that
- * copyright notice and this permission notice appear in supporting
- * documentation, and that the copyright holder's name not be used in
- * advertising or publicity pertaining to distribution of the software
- * without specific, written prior permission. The copyright holder makes
- * no representations about the suitability of this software for any
- * purpose. It is provided "as is" without express or implied warranty.
- */
-
- #define LibPgm libpgm.a
- #define DepLibPgm LibPgm
- #include <../Pbmplus.tmpl>
-
- CURRENTLIBS = $(LIBPGM) $(LIBPBM)
- CURRENTDEPLIBS = $(DEPLIBPGM) $(DEPLIBPBM)
- INCLUDES = -I.. -I$(PBMDIR)
- MERGE = pgmmerge
-
- MAN1 = fitstopgm.1 fstopgm.1 hipstopgm.1 lispmtopgm.1 pgmbentley.1 \
- pgmenhance.1 pgmhist.1 pgmnorm.1 pgmoil.1 pgmramp.1 \
- pgmtofits.1 pgmtofs.1 pgmtolispm.1 pgmtopbm.1 \
- psidtopgm.1 rawtopgm.1 \
- pgmcrater.1 pgmedge.1 pgmtexture.1
- MAN3 = libpgm.3
- MAN5 = pgm.5
-
- SRCS = fitstopgm.c fstopgm.c hipstopgm.c lispmtopgm.c pgmbentley.c \
- pgmenhance.c pgmhist.c pgmnorm.c pgmoil.c pgmramp.c \
- pgmtofits.c pgmtofs.c pgmtolispm.c pgmtopbm.c \
- psidtopgm.c rawtopgm.c \
- pgmcrater.c pgmedge.c pgmtexture.c
-
- OBJS = fitstopgm.o fstopgm.o hipstopgm.o lispmtopgm.o pgmbentley.o \
- pgmenhance.o pgmhist.o pgmnorm.o pgmoil.o pgmramp.o \
- pgmtofits.o pgmtofs.o pgmtolispm.o pgmtopbm.o \
- psidtopgm.o rawtopgm.o \
- pgmcrater.o pgmedge.o pgmtexture.o
-
- BINS = fitstopgm fstopgm hipstopgm lispmtopgm pgmbentley \
- pgmenhance pgmhist pgmnorm pgmoil pgmramp \
- pgmtofits pgmtofs pgmtolispm pgmtopbm \
- psidtopgm rawtopgm \
- pgmcrater pgmedge pgmtexture
-
- AllTarget($(LIBPGM) $(BINS))
-
- DependTarget()
-
- NormalPbmplusProgramTarget(fitstopgm)
- NormalPbmplusProgramTarget(fstopgm)
- NormalPbmplusProgramTarget(hipstopgm)
- NormalPbmplusProgramTarget(lispmtopgm)
- NormalPbmplusProgramTarget(pgmbentley)
- NormalPbmplusProgramTarget(pgmenhance)
- NormalPbmplusProgramTarget(pgmhist)
- NormalPbmplusProgramTarget(pgmnorm)
- NormalPbmplusProgramTarget(pgmoil)
- NormalPbmplusProgramTarget(pgmramp)
- NormalPbmplusProgramTarget(pgmtofits)
- NormalPbmplusProgramTarget(pgmtofs)
- NormalPbmplusProgramTarget(pgmtolispm)
- NormalPbmplusProgramTarget(pgmtopbm)
- NormalPbmplusProgramTarget(psidtopgm)
- NormalPbmplusProgramTarget(rawtopgm)
- NormalPbmplusMathProgramTarget(pgmcrater)
- NormalPbmplusMathProgramTarget(pgmedge)
- NormalPbmplusMathProgramTarget(pgmtexture)
-
- NormalLibraryObjectRule()
- NormalLibraryTarget(pgm,libpgm1.o libpgm2.o)
-
- #if InstallMerged
- NormalProgramTarget($(MERGE),$(MERGE).o $(OBJS),$(CURRENTDEPLIBS),$(CURRENTLIBS),-lm)
- #if InstallBinaries
- InstallProgram($(MERGE),$(PBMPLUSDIR)$(PBMPLUSBINDIR))
- #endif
- #endif
-
- #if InstallBinaries
- InstallPbmplusPrograms($(BINS),$(PBMPLUSDIR)$(PBMPLUSBINDIR),$(INSTPGMFLAGS))
- #endif
-
- #if InstallManuals
- InstallMultipleMan($(MAN1),$(PBMPLUSDIR)$(PBMPLUSMANDIR)/man1)
- InstallMultipleMan($(MAN3),$(PBMPLUSDIR)$(PBMPLUSMANDIR)/man3)
- InstallMultipleMan($(MAN5),$(PBMPLUSDIR)$(PBMPLUSMANDIR)/man5)
- #endif
-
- #if InstallLibraries
- InstallLibrary(pgm,$(PBMPLUSDIR)$(PBMPLUSLIBDIR))
- #endif
-
- #if InstallIncludes
- InstallMultipleFlags(pgm.h,$(PBMPLUSDIR)$(PBMPLUSINCDIR),$(INSTINCFLAGS))
- #endif
-